home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / LITTLE / TOOLKIT.ZIP / TOOLS / CBCACHE / XCBACK40.TXT < prev   
Encoding:
Text File  |  1996-12-04  |  2.1 KB  |  46 lines

  1. ECBACK40.TOS & DCBACK40.TOS
  2. ---------------------------
  3.  
  4. Use the ECBACK40.TOS program to force all FastRAM to use the 68040
  5. 'copyback' cache facility. This will make anything which uses FastRAM
  6. much faster than normal, but ONLY THE VERY CLEANEST OF CLEAN SOFTWARE
  7. WILL WORK FOR MORE THAN A FEW SECONDS!
  8.  
  9. DBACK040.TOS disables copyback mode, and returns FastRAM to the normal
  10. 'write-through' mode set up by the driver.
  11.  
  12. This feature is not the same as the copyback option in the driver
  13. itself, as the driver only uses copyback mode on a very small area of
  14. ram normally reserved for system use. These programs act on all available
  15. FastRAM (claimed or otherwise) and should be used with great care.
  16.  
  17. When copyback is active, any programs which attempt to do the following:
  18.  
  19. * Alter the 68040 cache registers
  20. * Alter the 68040 PMMU registers
  21. * Use self-modifying code (relatively frequent with 68000 TSR's)
  22.  
  23. ..will cause data held in the computer's memory to deteriorate quickly
  24. over time and the machine will very probably crash. You will normally
  25. be able to tell which programs are clean enough to use copyback mode
  26. simply by the fact that they won't crash inside the first 30 seconds of
  27. use.
  28.  
  29. I do NOT advise using the copyback mode unless you are desperate for
  30. speed - things like raytracing can benefit from the extra boost this
  31. can supply. For reference, POVRay v3.00 (my port) and Apex Alpha both
  32. work perfectly from FastRAM with copyback mode active, but a large
  33. number of other programs will prove to be highly unreliable!
  34.  
  35. If the machine crashes due to a program conflicting with copyback mode
  36. then you should reboot, because otherwise the machine can become
  37. destabilized and crashing will continue until the machine cannot be
  38. used any longer. This is caused by the cache containing stale data
  39. that is not matched by that held in real memory, which is normally
  40. described as a loss of cache coherency. This can't happen unless a
  41. program attempts one of the points listed above (unless there are
  42. unpatched DMA devices in use on your system).
  43.  
  44. Do not set the TT-ram flags in these programs. That would be bad.
  45.  
  46.